package com.nancy.java_design.proxy.demo2;

/**
 * JDK动态代理
 */
public class Client {
    public static void main(String[] args) {
        //获取代理工厂对象
        ProxyFactory factory = new ProxyFactory();
        //获取代理对象
        SellTicks sellTicks = factory.getProxySellTicks();

        sellTicks.sellTicket();
    }
}
